import request from "@/utils/request.js";

export function getTaskByCode(code, schooId) {
  return request.get(`/campus/taskInfo/app/byCode/${code}`, {schoolId: schooId},
      {noAuth: false});
}

export function getTaskById(id) {
  return request.get(`/campus/taskInfo/app/${id}`, null, {noAuth: false});
}

/**
 * 获取平台任务
 * @param params
 * @returns {*}
 */
export function getTaskInfos(params) {
  return request.get('/campus/taskInfo/app/list', params, {noAuth: false});
}

